package com.feibi.study.Utils;

import android.text.format.DateFormat;

import java.util.Calendar;
import java.util.Locale;

/**
 * 常量类
 * Created by baorui on 2017/2/28 0028.
 */

public class Constants {
    public static  int RECOMMEND = 1;
    public static  int ONLINE = 2;
    public static  int NEWEST = 3;
    public static  int FOLLOW = 4;

    public static int NEWEST_ART = 1;
    public static int FOLLOW_ART = 2;

    public static  String FileDir = "";
    public static  String CacheDir = "";
    public static final String FILE_PREFIX = "android_";
    public static final String FILE_NAME_TIME_FORMAT = "yyyyMMddHHmmss";

    public static String getPhotoName() {
        return getFileName() + ".jpg";
    }

    public static String getVoiceName() {
        return getFileName() + ".aac";
    }

    private static String getFileName() {
        return FILE_PREFIX + DateFormat.format(FILE_NAME_TIME_FORMAT, Calendar.getInstance(Locale.CHINA));
    }

}
